package com.wyh.controller.g3controller;

import com.wyh.common.result.Result;
import com.wyh.domain.vo.g3vo.FomualVO;
import com.wyh.service.g3service.FormulaService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FomulaController {
    @Autowired
    FormulaService formulaService;
    @GetMapping("/getFomula")
    public Result getFomula(@Param("current") Integer current,
                            @Param("size") Integer size,
                            @Param("type") Integer type){

        FomualVO formula = formulaService.findFormula(type, current, size);
        System.out.println(formula);


        return Result.success(formula);
    }
}
